/**
 * Java Enterprise in a Nutshell, Third Edition, 
 * by Jim Farley and William Crawford 
 * with Prakash Malani, John G. Norman, and Justin Gehtland. 
 * Copyright 2006 O'Reilly Media, Inc., 0-596-10142-2.
 * 
 * Reworked by Vladimir Tarasov, 2008-06-17.
 * Tested with JDK 1.6.
 * The folder containing the class file should be on the CLASSPATH.
 */

package tavl_rmi.accountmanager;

import tavl_rmi.account.Account;
import java.rmi.NotBoundException;
import java.rmi.Remote;
import java.rmi.RemoteException;

/**
 * AccountManager: A manager for remote Accounts.
 * This interface is used in the factory RMI example.
 */
public interface AccountManager extends Remote {
  public Account getAccount(String name) throws RemoteException;
  public boolean newAccount(String name) throws RemoteException;
  public boolean deleteAccount(String name) throws RemoteException, NotBoundException;
}
